home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / cat3 / Sleep.3 < prev    next >
Text File  |  1994-09-20  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. Tk_Sleep(3)           Tk Library Procedures
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      Tk_Sleep - delay  execution  for  a  given  number  of  mil-
  12.      liseconds
  13.  
  14. SYNOPSIS
  15.      #include <tk.h>
  16.  
  17.      Tk_Sleep(_m_s)
  18.  
  19. ARGUMENTS
  20.      int_m_s(in)
  21.      Number of milliseconds to sleep.
  22. _________________________________________________________________
  23.  
  24.  
  25. DESCRIPTION
  26.      This procedure delays the calling process by the  number  of
  27.      milliseconds  given  by  the _m_s parameter, and returns after
  28.      that time has elapsed.  It is typically used for things like
  29.      flashing a button, where the delay is short and the applica-
  30.      tion needn't do anything while it waits.  For longer  delays
  31.      where  the application needs to respond to other events dur-
  32.      ing the delay, the procedure Tk_CreateTimerHandler should be
  33.      used instead of Tk_Sleep.
  34.  
  35.  
  36. KEYWORDS
  37.      sleep, time, wait
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Tk                                                              1
  64.  
  65.  
  66.  
  67.